//系统配置-账号管理-配置文件
App.util.ns('Admin.Access.User');
Admin.Access.User.Conf = {
    columns: [
        {name: '账号', value: 'username'},
        {name: '状态', width: '70px', value: function(item){
            switch (item.status+'') {
                case '0':
                    return '停用';
                case '1':
                    return '启用';
                default: 
                    return '';
            }
        }},
        {name: '昵称', value: 'nickname', width: '200px'},
        {name: '姓名', value: 'name', width: '100px'},
        {name: '手机号码', value: 'phone', width: '100px'},
        {name: '邮箱', value: 'email', width: '200px'}
    ],
    form: [
        {type: 'hidden', name: 'user_id'},
        {type: 'input', name: 'username', title: '用户名', rule: {
            type: 'str',
            range: [1, 100]
        }},
        {type: 'password', name: 'password', title: '密码', rule: {
            type: 'str',
            range: [1, 100]
        }},
        {type: 'password', name: 're_password', title: '确认密码', rule: {
            type: 'str',
            range: [1, 100]
        }},
        {type: 'input', name: 'nickname', title: '昵称', rule: {
            type: 'str',
            range: [1, 100]
        }},
        {type: 'img', name: 'icon', title: '头像', rule: {
            type: 'str',
            range: [0, 100]
        }},
        {type: 'textarea', name: 'introduction', title: '简介', rule: {
            type: 'str',
            range: [0, 250]
        }},
        {type: 'input', name: 'name', title: '姓名', rule: {
            type: 'str',
            range: [0, 100]
        }},
        {type: 'input', name: 'phone', title: '手机', rule: {
            type: 'phone',
            range: [0, 100]
        }},
        {type: 'input', name: 'email', title: '邮箱', rule: {
            type: 'email',
            range: [0, 100]
        }}
    ]
};